package org.orz.story.pms.biz.model.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.orz.story.pms.biz.enums.PermissionTypeEnum;

import java.util.List;

@Data
@ApiModel("用户的菜单列表")
public class MenuListResp {
    @ApiModelProperty("权限id")
    private Long id;
    @ApiModelProperty("父级权限id")
    private Long parentId;
    @ApiModelProperty("权限名称")
    private String name;
    @ApiModelProperty("权限url")
    private String url;
    @ApiModelProperty("排序")
    private Integer orderNum;
    @ApiModelProperty("权限的图标")
    private String icon;
    /**类型 {@link PermissionTypeEnum}*/
    @ApiModelProperty("权限类型")
    private Integer type;
    @ApiModelProperty("状态 1启用 0禁用")
    private Integer status;
    @ApiModelProperty("是否展示 0不展示 1展示")
    private Integer showFlag;
    @ApiModelProperty("子菜单")
    private List<MenuListResp> children;
}